package org.zjsru.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.zjsru.order.pojo.User;

@FeignClient(value="user-service")
public interface OrderServiceFeign {
    @GetMapping("/user/{id}")
    User queryUserById(@PathVariable("id") Long id);
}
